<?php
class ent_guestbookread extends Lead_EDO_Object_Abstract
{
    static $_tables = array('ent_gbread');

    
    
    
   	function guestBookPages($gbpage, $totalpages) {	
		
		if ($totalpages != 1) {
			// $querystring = LED_QS_Get("gbpage");
			print "<div class=\"guestbook_pages\">\n";
			for ($counter = 1; $counter <= $totalpages; $counter++) {
				if ($gbpage == $counter) {
					print $counter;
				} else {
					print "<a href=\"?gbpage=$counter\">$counter</a>";
				}
				if ($counter != $totalpages) {
					print " | ";
				}
			}
			print "</div>\n";
		}
	}

}
